package com.tudouji.project.flow.controller;

import com.tudouji.framework.web.controller.BaseController;
import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.framework.web.page.TableDataInfo;
import com.tudouji.project.flow.domain.Flowconditions;
import com.tudouji.project.flow.service.AccessTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.json.JsonObject;
import java.util.List;

/**
 * @author xiaxl
 * @version v1.0
 * @ClassName AccessTokenService
 * @Descrption
 * @date 2022/4/12 15:22
 */
@RestController
@RequestMapping("/token")
public class AccessTokenController extends BaseController {

    @Autowired
    @Qualifier("accessTokenService")
    private AccessTokenService accessTokenService;

    @GetMapping("/getToken")
    public AjaxResult getToken() {
        return AjaxResult.success(accessTokenService.getToken());
    }

}
